88
[55, 166, 277, 388, 499, 610, 721, 832, 943, 1054, 1165]
[55, 166, 277, 388, 499]
[610, 721, 832, 943, 1054, 1165]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-17-4c6f1013a93a> in <module>()
18
19 # Train the model using the training sets
---> 20 regr.fit(x_train, y_train)
21
22 # The coefficients
/Library/Python/2.7/site-packages/sklearn/linear_model/base.pyc in fit(self, X, y, sample_weight)
425 n_jobs_ = self.n_jobs
426 X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'],
--> 427 y_numeric=True, multi_output=True)
428
429 if ((sample_weight is not None) and np.atleast_1d(sample_weight).ndim > 1):
/Library/Python/2.7/site-packages/sklearn/utils/validation.pyc in check_X_y(X, y, accept_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, warn_on_dtype, estimator)
518 y = y.astype(np.float64)
519
--> 520 check_consistent_length(X, y)
521
522 return X, y
/Library/Python/2.7/site-packages/sklearn/utils/validation.pyc in check_consistent_length(*arrays)
174 if len(uniques) > 1:
175 raise ValueError("Found arrays with inconsistent numbers of samples: "
--> 176 "%s" % str(uniques))
177
178
ValueError: Found arrays with inconsistent numbers of samples: [ 5 88]